package com.socket.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * socket配置类
 *
 * @author ww
 * @date 2018/7/5
 */
@Configuration
public class SocketConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        System.out.println("init socket");
        return new ServerEndpointExporter();
    }
}
